<?php

use Illuminate\Database\Seeder;
use App\User;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $users= factory(User::class)->times(10)->make()
            ->makeVisible('password')
            ->toArray();
        User::insert($users);
        User::first()->update([
            'name'=> 'zhaiduting',
            'email'=> 'zhaiduting@163.com',
            'firstName'=> 'Zhai',
            'lastName'=> 'Duting'
        ]);
    }
}
